rewritebalance roundrobinserver app1_1 192.168.34.23:8080 Cookie App1inst1 Check Inter rise 2 fall 5server app1_2 192.168.34.32:8080 Cookie App1inst2 check Inter rise 2 fall 5server app 1_3 192.168.34.27:8080 Cookie App1inst3 check Inter rise 2 fall 5server app1_4 192.168.34.42:8080 Cookie App1inst4 C Heck Inter rise 2 fall 5listen appli2-insert 0.0.0.0:10002option httpchkbalance roundrobincookie serverid Insert Ind Irect nocacheserver inst1 192.168.114.56:80 cookie Server01 Check Inter fall
auth admin: Admin# Hide the haproxy version on the statistics pageStats hide-version########################### TCP connection monitoring configuration ######## ########################Listen TCP-inBind *: 2211Mode TCP# Logging optionsOption tcplogLog global# Backend servers# Weight -- Adjust the load on the server# Check -- allow health check on this server# Inter -- set the time between two consecutive health checks, in milliseconds (MS), default 2000 (MS)# Rise -- after specifying the number
Zookeeper cluster installation and configurationFirst introduce the basic configuration of zoo.cfg.ticktime=2000initlimit=10synclimit=5datadir=/datadatalogdir=/datalogclientport=2181electionalg=3server.1= 127.0.0.1:20881:30881server.2=127.0.0.1:20882:30882server.3=127.0.0.1:20883:30883Basic information for configurationticktime=2000: The basic time unit in milliseconds, other times such as heartbeat/timeout are integer multiples of the unit time;A mul
^ (bbs.test.com|shequ.test.com|forum)Second, session holdHaproxy load balancing three ways to keep the client and server session:2.1 User Source IP identificationHaroxy the User IP is hashed and assigned to the fixed real server (similar to the Nginx IP hash command)Configuration directive Balance SourceBackend wwwMode httpBalance SourceServer Web1 192.168.0.150:80 check Inter rise 3 Fall 3Server WEB2 192.168.0.151:80 check Inter rise 3 Fall 32.2 Coo
branch of MySQL. It is mainly maintained by the open-source community and licensed by GPL. One of the reasons for developing this branch is that after Oracle acquired MySQL, there is a potential risk of closing the source of MySQL. Therefore, the community uses the branch method to avoid this risk. MariaDB is designed to be fully compatible with MySQL, including APIs and command lines, so that it can easily become a substitute for MySQL.
Install mariadb. The size is 59 MB.
[root@yl-web yl]# yum
shutting MySQL out of the source, so the community uses a branching approach to avoid this risk. MARIADB is designed to be fully compatible with MySQL, including APIs and command lines, making it easy to be a replacement for MySQL.Install MARIADB, size M.The relevant commands for the MARIADB database are:Systemctl Start mariadb #启动MariaDBSystemctl Stop mariadb #停止MariaDBSystemctl Restart MARIADB #重启MariaDBSystemctl Enable MARIADB #设置开机启动So start the database first[Email protected] yl]# systemct
:
[Email protected]/]# systemctl start Mariadb.service
Set power on auto start:
[Email protected]/]# Systemctl enable Mariadb.service
1.3. Open the FirewallExternal access to MARIADB, such as Java and other links, requires 3306 ports, so open 3306 ports are required:
[Email protected]/]# firewall-cmd--permanent--zone=public--add-port=3306/tcpSuccess
where the permanent parameter sets the firewall to permanent.1.4. V
To prevent licensing mode from startingEdit/ETC/MY.CNF and add the following:Linux Environment: VI/ETC/MY.CNFAdd the following two lines to the [MySQL (and PHP collocation best combination) d] Configuration segment:User=mysqlSkip-grant-tablesSave to exit Edit.Restart Mysqld.Service mysqld RestartUse MySQL password-free connection, change password and password expiration flag;[[email protected] ~]# Mysqlwelcome toThe MySQL Monitor. CommandsEnd with;or\g.your MySQL Connection ID is
-increment rule to avoid duplication of master-slave synchronization IDauto_increment_increment=2 # Self-amplification factor (modified according to MySQL server number, in this case 2 MySQL servers)auto_increment_offset=2 # Self-increment offset (starting from 2)3. Restart MySQL service on Node1 and Node2 respectivelyRestarting the MySQL service on Node1[Email protected] ~]# systemctl restart mysqldRestarting the MySQL service on Node2[Email protected] ~]# systemctl restart mysqld4. Enter the M
. success! [[emailprotected] mysql]# mysql-uroot-p123456mysql: [Warning] Using a password on the command line interface can b E insecure. Welcome to the MYsql Monitor. Commands End With; or \g.your MySQL connection ID is 3Server version:5.7.18-log mysql Community Server (GPL) Copyright (c), Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or itsaffiliates. Other names trademarks of their re
192.168.1.4, and then modify the/etc/haproxy/haproxy.cfg:Listen Rabbitmq_cluster 0.0.0.0:5672Mode TCPBalance RoundrobinServer Node1 192.168.1.1:5672 check Inter rise 2 Fall 3Server Node2 192.168.1.2:5672 check Inter rise 2 Fall 3Server Node2 192.168.1.3:5672 check Inter rise 2 Fall 34. Users and PermissionsBefore the formal application, we first create a vhost in RABBITMQ, add a user, and set the user's pe
reference:Httpd: syntax error on line 161 of/usr/local/apache2/CONF/httpd. conf: cannot load/etc/httpd/modules/mod_ldap.so into server:/etc/httpd/modules/mod_ldap.so: Undefined Symbol: ldap_simple_bind_s
### In the process of solving the problem, I began to suspect that there was a problem with the LDAP-related package. I found that there was a problem with the APR-util package on the Internet.
### Why? How can this problem be solved? Run./httpd-V to check the version!
Server version: Apache/
create a database and a table. The table contains an AUTO_INCREMENT field that makes mysql-mmm troublesome and troublesome, by the way, add a user to access this database.
[root@centos6 ~]# mysql -u rootWelcome to the MariaDB monitor. Commands end with ; or /g.Your MariaDB connection id is 3Server version: 5.5.33a-MariaDB MariaDB Server, wsrep_23.7.6.rXXXXCopyright (c) 2000, 2013, Oracle, Monty Program Ab and others.Type 'help;' or '/h' for help. Ty
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.